package org.lmind.arena.srd35;

import java.util.HashMap;
import java.util.Iterator;

public class Damage {
	
	private HashMap<String, Integer> stacks = new HashMap<String, Integer>();
	
	public void add(String type, int value) {
		if (!stacks.containsKey(type)) {
			stacks.put(type, value);
		} else {
			stacks.put(type, stacks.get(type) + value);
		}
	}
	
	public Iterator<String> types() {
		return stacks.keySet().iterator();
	}
	
	public int getValue(String type) {
		return stacks.get(type);
	}

}
